The phrase "a dose of one's own medicine" means to experience or receive what you have been giving to others. It is a way of saying that someone who has been treating others harshly, unjustly or unfairly will now get the same treatment themselves. The idea behind this phrase is that justice and fairness should be applied equally to everyone, regardless of their position or status.